package com.mall.user;

import com.mall.user.dto.*;

/**
 * @Author: dhy
 * @Date: 2021/1/22 19:09
 * @Description:
 */
public interface ILoginService {

    /**
     * 校验token
     * @param checkAuthRequest
     * @return
     */
    CheckAuthResponse validToken(CheckAuthRequest checkAuthRequest);

    /**
     * 校验账号密码
     * @param userLoginRequest
     */
    UserLoginResponse validUserLogin(UserLoginRequest userLoginRequest);

    /**
     * login get请求返回用户信息
     * @return
     * @param userInfo
     */
    UserLoginInfoResponse returnUserInfo(String userInfo);

    /**
     * 用户注册
     * @param userRegisterRequest
     * @return
     */
    UserRegisterResponse userRegister(UserRegisterRequest userRegisterRequest);

    /**
     * 邮箱激活
     * @param userVerifyRequest
     * @return
     */
    UserVerifyResponse emailVerify(UserVerifyRequest userVerifyRequest);
}
